﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PROFIP.Persistence.DTO;
using System.IO;
using System.Xml.Serialization;

namespace PROFIP.Persistence
{
    class Loader
    {
        public PROFIPDTO Load(Stream stream)
        {
            //TODO handler class distribution versioning
            XmlSerializer mySerializer = new XmlSerializer(typeof(PROFIPDTO));
            return (PROFIPDTO) mySerializer.Deserialize(stream);
        }

    }
}
